<?php if(!isset($hide)) $hide = array()?>
<?php $styleAtt = '';
	  if(isset($style)) $styleAtt = 'style="'.$style.'"'?>
<div id="div_<?php echo $ownerFieldname . '_' . $num . '_';?>Form" class="itemForm" title="<?php echo __('Edit item')?>" <?php echo $styleAtt?> >
<?php if($objDef->description):?>
		<fieldset><legend><?php echo __("General Information")?></legend>
		  	<div class="description"><?php echo $objDef->description?></div>
		</fieldset>
<?php endif;?>
<?php   $section = '';
		foreach($objDef->attributes as $fieldName => $att){
			if($section != $att['section']){
	        	if($section !='')
	        		echo '</fieldset>';
	        	
	            echo '<fieldset id="'. Util::stripAccents2($att['section'], true).'"><legend>'. __($att['section'],null,'forms').'</legend>';
			}
		    echo $objDef->renderAttributeWidget($form, $fieldName, $hide);; 
	  		$section = $att['section'];		  	
		}
		echo '</fieldset>';	
?>
	<div class="buttons">
          	<a href="javascript:void(0);" onclick="closeSubForm('<?php echo $ownerFieldname?>');">
			<img src="/images/icons/64/confirm.png" title="<?php echo __('Save') ?>"></img>
			</a>
	</div>
</div>
